"use strict";
const way = require("./utils/way");
const HomeCtl = require("./controller/home");

//用户登录
exports.login = async (context) => {
  return await way.execute(HomeCtl, "login", context);
};

//用户授权
exports.auth = async (context) => {
  return await way.execute(HomeCtl, "auth", context);
};

//完成第一次
exports.finishFirst = async (context) => {
  return await way.execute(HomeCtl, "finishFirst", context);
};

//任务列表
exports.findTaskList = async (context) => {
  return await way.execute(HomeCtl, "findTaskList", context);
};

//商品列表
exports.findGoodList = async (context) => {
  return await way.execute(HomeCtl, "findGoodList", context);
};

//完成任务
exports.finishTask = async (context) => {
  return await way.execute(HomeCtl, "finishTask", context);
};

//加购商品
exports.purchase = async (context) => {
  return await way.execute(HomeCtl, "purchase", context);
};
